package com.itheima.service.Impl;

import com.itheima.dao.UserDao3;
import com.itheima.health.pojo.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
    //注入UserDao
    @Autowired
    private UserDao3 dao;
    /***
     * 根据用户名来查询用户信息
     * @param username
     * @return
     */
    @Override
    public User findUserByUsername(String username) {

        return  dao.findUserByUsername(username);
    }
}
